package com.hang.ad.controller;

import com.hang.ad.service.ICreativeService;
import com.hang.ad.vo.CreativeRequest;
import com.hang.ad.vo.CreativeResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class CreativeController {
    @Autowired
    private ICreativeService creativeServiceImpl;

    @PostMapping("/create/creative")
    public CreativeResponse createCreative(@RequestBody CreativeRequest request){
        return creativeServiceImpl.createCreative(request);
    }
}
